-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for selecting simple (default) or full type names #26
Conversation
…s will be output.
Netcetera » valdr-bean-validation #100 SUCCESS |
@philippd what's your take on this? We've been using the class' simple name on purpose because we want to "encourage" people to use unique names for their entities/model classes. One shouldn't have two |
@marcelstoer How about two |
This should work fine. The only thing to keep in mind is to always use the fully qualified class name in the valdr-type directive when this option is enabled. |
Yes, it will work. I'm just not sure whether we should offer that option at all? IIRC we've been discussing this before during the initial implementation. It's irrelevant whether your model class is a My point essentially is about how restrictive the project should be in enforcing what we consider good or bad practice. |
Yes we discussed it back then and decided to use the simple name to encourage best practices and keep the names in the markup short. IMO it's fine to add the option as long as the default is to use the simple name. This way we still encourage to use what we consider good practice, but also support cases where someone might not be able to avoid having two classes with the same name (3rd party code). |
I could add a comment to make it explicit that the simple name is the suggested usage, would that help? |
Add support for selecting simple (default) or full type names
No description provided.